#include <stdio.h>
//输出最高分与最低分之差
int main()
{
    int n = 0;
    printf("输入数组的大小:>");
    scanf("%d",&n);
    int arr[n];
    int max = 0;
    int min = 100;
    int i = 0;
    printf("输入成绩并判断:>");
    for(i = 0; i<n; i++)
    {
        scanf("%d",&arr[i]);
        if(arr[i]>max){
            max = arr[i];
        }
        if(arr[i]<min){
            min = arr[i];
        }
    }
    printf("最大值是%d,最小值是%d",max,min);
    return 0;
}